﻿package com.wy.framework.constants;

import com.wy.component.easemob.comm.PropertiesUtils;

/**
 * @author jeff_he
 * 
 */
public class Constants {

	public static final String IS_AVAILABLE = "1";
	public static final String IS_NOT_AVAILABLE = "0";

	  /**
	   * 欧尚redis设备类型
	   */
	  public static final String DEVICE_TYPE_PC = "pc";
	  public static final String DEVICE_TYPE_HTML5 = "html5";
	  public static final String DEVICE_TYPE_ANDROID = "android";
	  public static final String DEVICE_TYPE_IOS = "ios";
	  
	/**
	 * 环信
	 */
	// API_HTTP_SCHEMA
	public static String API_HTTP_SCHEMA = "https";
	// API_SERVER_HOST
	public static String API_SERVER_HOST = PropertiesUtils.getProperties().getProperty("API_SERVER_HOST");
	// APPKEY
	public static String APPKEY = PropertiesUtils.getProperties().getProperty("APPKEY");
	// APP_CLIENT_ID
	public static String APP_CLIENT_ID = PropertiesUtils.getProperties().getProperty("APP_CLIENT_ID");
	// APP_CLIENT_SECRET
	public static String APP_CLIENT_SECRET = PropertiesUtils.getProperties().getProperty("APP_CLIENT_SECRET");
	// DEFAULT_PASSWORD
	public static String DEFAULT_PASSWORD = "shwally421";
	
	// HttpSession里代表用户登陆信息
	public static final String USER_KEY = "userkey";
	// HttpSession里代表用户级别的属性名
	public static final String LEVEL = "level";
	// HttpSession里代表admin的level值
	public static final String ADMIN_LEVEL = "admin";
	// HttpSession里代表普通用户的level值
	public static final String COMMON_LEVEL = "common";

	// 组织树根节点
	public static final String ORG_CODE_ROOT = "000000";

	// 手机号校验用正则表达式
	public static final String MOBILE_PATTERN = "1[34578][0-9]{9}";

	// 报名来源
	// 邀请函
	public static final String SIGN_FROM_REGISTERED_LETTER = "0";
	// 开放
	public static final String SIGN_FROM_OPEN_MEETING = "1";
	// 受邀
	public static final String SIGN_FROM_INVITED = "2";

	// 考勤方式
	// 固定
	public static final String CHECK_WAY_GD = "0";
	// 非固定
	public static final String CHECK_WAY_FGD = "1";
	// 混合
	public static final String CHECK_WAY_HH = "2";

	// 开放活动
	// 不开放
	public static final String OPEN_CONFERENCE_IS = "1";
	// 开放
	public static final String OPEN_CONFERENCE_NOT = "0";

	// 注册来源
	// 0:后台添加(excel导入,用户管理新增)
	public static final String Reg_From_Backstage = "0";
	// 1:邀请函注册
	public static final String Reg_From_Detail = "1";
	// 2:APP注册
	public static final String Reg_From_App = "2";
	// 3:微信公众号注册
	public static final String Reg_From_WeChat = "3";
	// D:东华中间表同步
	public static final String Reg_From_MidTab = "D";

	// 用户角色
		// 系统管理员
	public static String ROLE_ADMIN = "SYS_ADMIN";
	   //新闻管理员
	public static String NEWS_ADMIN="SYS_NEWS_ADMIN";  
	//APP管理员
	public static String APP_MANAGER="SYS_APP_MANAGER";
	//APP开发者
	public static String APP_DEVELOPER="SYS_APP_DEVELOPER";
	//APP客户端
	public static String APP_CLIENT="SYS_APP_CLIENT";
	//其他管理员
	public static String OTHER_ADMIN="SYS_OTHER_ADMIN";
	//学生
	public static String SYS_STUDENT="SYS_STUDENT";
	//教职工
	public static String SYS_STUFF="SYS_STUFF";
	
	// 模块类型
	// 用户模块
	public static final String MODEL_TYPE_USER = "0";
	// 管理员模块
	public static final String MODEL_TYPE_MANAGER = "1";

	// 是否嘉宾
	public static final String GUEST_IS = "1";
	public static final String GUEST_NOT = "0";

	// 活动群组
	public static final String GROUP_NORMAL = "01";

	// 消息中心
	// 成功
	public static final String MESSAGE_SUCCESS = "1";
	// 失败
	public static final String MESSAGE_FAIL = "0";

	// 性别
	public static final String SEX_MALE = "男";
	public static final String SEX_FEMALE = "女";

	// 审核
	// 待审
	public static final String VERIFY_NOT = "0";
	// 通过
	public static final String VERIFY_PASS = "1";
	// 拒绝
	public static final String VERIFY_REJECT = "2";
	// 待完善信息
	public static final String VERIFY_PERFECT = "3";

	// 报名状态
	// 未报名
	public static final String ROSTER_NOTAPPLIED = "0";
	// 已报名
	public static final String ROSTER_APPLIED = "1";
	// 找XX代开 主动方
	public static final String ROSTER_FINDSB = "2";
	// 被XX代开 被动方,真正参会人
	public static final String ROSTER_FORSB = "3";

	// 公共通讯录
	public static final String COMMON_FLAG_IS = "1";
	public static final String COMMON_FLAG_NOT = "0";

	// 显示类型：
	// 后台显示
	public static final String BACKGROUND_SHOW = "1";
	// 后台不显示
	public static final String BACKGROUND_NOTSHOW = "0";
	// 后台固定
	public static final String BACKGROUND_FIXED = "0";
	// 后台不固定
	public static final String BACKGROUND_UNFIXED = "1";
	// 移动端显示
	public static final String APP_SHOW = "1";
	// 移动端不显示
	public static final String APP_NOTSHOW = "0";
	// APP固定
	public static final String APP_FIXED = "1";
	// APP不固定
	public static final String APP_UNFIXED = "0";

	// 负责人
	// 是
	public static final String MANAGE_YES = "1";
	// 否
	public static final String MANAGE_NO = "0";

	// 访问模块类型
	// 新闻
	public static final String REQUEST_TYPE_NEWS = "M001";
	// 活动
	public static final String REQUEST_TYPE_MEET = "M002";

	// 问卷调查开关
	// 开
	public static final String QUESTIONNAIRE_OPEN = "1";
	// 关
	public static final String QUESTIONNAIRE_CLOSE = "0";

	// 抽奖开关
	public static final String LuckyDraw_OPEN = "1";
	public static final String LuckyDraw_CLOSE = "0";

	// 抽奖类型
	public static final String DRAW_TYPE_GUA = "0";
	public static final String DRAW_TYPE_SCROLL = "1";

	// 个推app端跳转
	// 更新页面
	public static final String JUMPTO_UPDATE = "update";
	// 消息页面
	public static final String JUMPTO_MESSAGECENTER = "messageCenter";
	// 活动九宫格
	public static final String JUMPTO_MEETDETAIL = "meetDetail";
	// 活动详情，在线报名
	public static final String JUMPTO_APPLY = "apply";
	// 同意添加好友
	public static final String JUMPTO_AGREE = "agree";
	// 受邀请列表
	public static final String JUMPTO_INVITE = "invite";

	// 定时消息类型
	public static final String MESSAGE_TYPE_TIMING = "T";

	// 项目名
	public static final String PROJECT_NAME_DH = "东华会议签到系统";
	public static final String PROJECT_NAME_QNJ = "青年+";
	
	/*************************APP状态 star************************/
	
	//0:新应用待审
	public static final String NEW_APP_PENDING = "0";
	
	//1:新应用驳回
	public static final String NEW_APP_REJECTED = "1";
	
	//2:升级待审
	public static final String UPDATE_PENDING = "2";
	
	//3:升级驳回
	public static final String UPDATE_REJECTED ="3";
	
	//4:验收待审
	public static final String PENDING_APPROVAL = "4";
	
	//5:验收驳回
	public static final String ACCEPTANCE_REJECTION = "5";
	
	//6:验收通过
	public static final String ACCEPTANCE_BY = "6";
	
	/*************************APP状态 end************************/
	
	/*************************APP上下架状态 star************************/
	
	//0:已下架
	public static final String UNDER_SHELF = "0";
	
	//1:已上架
	public static final String ALREADY_ON_THE_SHELVES = "1";
	
	/*************************APP上下架状态 star************************/
	
	/*************************APP上下架状态 star************************/
	
	//0:推荐
	public static final String APP_TYPE_RECOMMENDED = "0";
	
	//1:热门
	public static final String APP_TYPE_HOT = "1";
	
	//2:临时
	public static final String APP_TYPE_TEMP = "2";
	
	/*************************APP上下架状态 star************************/

}
